package com.alinesno.cloud.base.boot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

import com.alinesno.cloud.common.core.auto.EnableCore;
import com.alinesno.cloud.common.core.auto.EnableDubboScan;

/**
 * 启动入口
 * @EnableSwagger2 //开启swagger2
 * @author WeiXiaoJin
 * @since 2018-12-16 17:12:901
 */
@EnableJpaAuditing
@SpringBootApplication
@EnableDubboScan
@EnableCore
public class BaseBootApplication {

	public static void main(String[] args) {
		 SpringApplication.run(BaseBootApplication.class, args);
	}
	
//	@Configuration
//	public static class SecurityPermitAllConfig extends WebSecurityConfigurerAdapter {
//	    @Override
//	    protected void configure(HttpSecurity http) throws Exception {
//	        http.authorizeRequests().anyRequest().permitAll()  
//	            .and().csrf().disable()
//	            .headers().frameOptions().disable(); 
//	    }
//	}

}
